
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<html>
<head>
      <link rel="stylesheet" href="../css/normalize.css">
      <link rel="stylesheet" href="../css/mn.css">
    <title>模拟测试</title>
</head>
<script>
      var xmlhttp=new XMLHttpRequest();
      window.onload=function(){
            xmlhttp.open("GET","/examproject/stu/book",true);
            xmlhttp.send();
            xmlhttp.onreadystatechange=function(){
                  if(xmlhttp.readyState==4 && xmlhttp.status==200){
                        var sz=JSON.parse(xmlhttp.responseText);
                        var obj=document.querySelector("#bid");
                        for(var i=0;i<sz.length;i++){
                              var op=new Option(sz[i].book_name,sz[i].book_id);
                              obj.appendChild(op);
                        }
                  }
            }
      }
</script>
<body>
<form action="/examproject/stu/test" method="post">
<div class="reg_div">
      <p>测试演练</p>
      <ul class="reg_ul">
            <li>
                  <span>选择学科:</span>
                  <select name="name" class="reg_confirm" id="bid" >
                  </select>
                  <span class="tip user_hint"></span>
            </li>
            <li>
                  <span>单选：</span>
                  <input type="text" name="danx" value="" class="reg_confirm">
                  <span class="tip user_hint"></span>
            </li>
            <li>
                  <button type="submit" name="button" >生成试卷</button>
            </li>
      </ul>
</div>
</form>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/script1.js"></script>

</body>
</html>
